package com.springsummer.information.green.webmvc;

import java.net.ServerSocket;
import java.net.Socket;

public class HttpServerTwo {

    public static void main(String[] args) throws Exception {
        ServerSocket serverSocket = new ServerSocket(8080);
        System.out.println("Server started on port 8080");

        while (true) {
            Socket clientSocket = serverSocket.accept();
            Runnable runnable=new HttpServerRequestHandler(clientSocket);
            new Thread(runnable).start();
        }

    }

}








